/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.service.stores;
import com.alibaba.fastjson.JSONObject;
import com.qinyetech.springstage.core.service.IBaseService;
import com.qinyeit.serviceapp.entity.PurchaseOrder;

/** 
 * ClassName: PurchaseOrderService <br/> 
 * Function: 采购订单业务功能 <br/> 
 * date: 2018-11-08 14:00:02 <br/> 
 * 
 * @author liuwenjin
 * @version 1.0
 * @since JDK 1.8
 */
public interface PurchaseOrderService extends IBaseService<PurchaseOrder, Long>{

    /**
     * 保存订单
     * @param data
     *  type:1. 保存 2.提交并审核 3.确认收货
     *  purchaseOrder:{
     *      //3.确认收货 
     *  }
     *  details:[]
     *
     *  步骤 ：
     *    1.保存
     *
     *
     *    2.提交并审核
     *    //订单物料数量不能为空
     *
     *    3.确认收货
     *    //选择仓库 收货日期
     *
     *    4.再次购买
     *    //
     *
     */
    void saveDate(JSONObject data,Long merchantGroupId);

}